/**
 * 
 */
package com.yinhai.activity;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * @author lz
 * 
 * 
 */
public class NewsContentCQCActivity extends Activity {
	private ImageView news_btn;
	private WebView webview;
	String name = "";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_news_cqc);

		Intent  it =getIntent();
		String name ="";
		if(it.hasExtra("ISCQC")){
			name = it.getStringExtra("ISCQC");
		}
		TextView tt = (TextView)findViewById(R.id.tvbgxz);
		
		 webview = (WebView)findViewById(R.id.newswebview);  
	        //设置WebView属性，能够执行Javascript脚本  
	      webview.getSettings().setJavaScriptEnabled(true);  
	        //加载需要显示的网页  
	      if(name.equals("2")){
	    	  webview.loadUrl("http://218.206.27.200:17071/dc/ums/preIndex.action?ct=320"); 
	    	  tt.setText("重庆城下载");
	      }else if(name.equals("3")){
	    	  webview.loadUrl("http://www.10086.cn/cmccclient/"); 
	    	  tt.setText("掌上营业厅下载");
	      }else{
	          webview.loadUrl("http://gdhjy.cn/"); 
              tt.setText("和教育下载");
	      }
	     
		
		news_btn = (ImageView)findViewById(R.id.news_btn);
		news_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				finish();
			}
		});

	}

}